package com.ts.api.module.filter.service.impl;

import com.ts.api.module.filter.dao.DataFilterDao;
import com.ts.api.module.filter.service.DataFilterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class DataFilterServiceImpl implements DataFilterService {

    @Autowired
    private DataFilterDao dataFilterDao;


    @Override
    @Transactional(readOnly = true)
    public int countByPhoneMd5(String phoneMd5) {
        return dataFilterDao.countByPhoneMd5(phoneMd5);
    }

    @Override
    public int insert(String phoneMd5) {
        return dataFilterDao.insert(phoneMd5);
    }

}
